<template>
    <div style="margin: 20px;">
        <el-table :data="resouce">
      <el-table-column  prop="create_time" label="创建时间" />
      <el-table-column  prop="name" label="资源名称" />
      <el-table-column  prop="url" label="资源url" />
      <el-table-column  prop="description" label="描述" />
      <el-table-column  prop="category_id" label="资源分类" />
    </el-table>
    </div>
  </template>
  
  <script lang="ts" setup>
  import { onMounted, ref } from 'vue'
  import {  getResource} from '../../../api';
  const dialogTableVisible = ref(false)
  
const resouce = ref([])
const id = ref(0);
  onMounted(() => {
  // resetParentId();
getList()

});

const getList = async () => {
    const response = await getResource(id.value);
    //list.value = response.data.list;
    console.log(response)
   // total.value = response.data.total;

};
  </script>